﻿using HeyPiPi_Desk.Models;
using Microsoft.Practices.Prism.ViewModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HeyPiPi_Desk.Domain
{
    public class AssistantViewModel:NotificationObject
    {

        private ObservableCollection<AssistantDataModel> _assistantdatalist;

        /// <summary>
        /// 店员信息列表
        /// </summary>
        public ObservableCollection<AssistantDataModel> AssistantdataList
        {
            get { return _assistantdatalist; }
            set { _assistantdatalist = value; this.RaisePropertyChanged(() => this.AssistantdataList); }
        }

        public AssistantViewModel()
        {
            this.AssistantdataList = new ObservableCollection<AssistantDataModel>();
            for (int i = 0; i < 200; i++)
            {
                this.AssistantdataList.Add(new AssistantDataModel() { Id = i, Name = "ass" + i.ToString(), Phone = "123", Sex = "男", Job = "美容师", Deduct = 10, State = "账号可用" });
            }
        }
    }
}
